﻿Public Class _Default
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click

        LBL_sum.Text = getResult(TB_first.Text, TB_second.Text)

    End Sub

    Private Function getResult(ByVal first As Double, ByVal second As Double)
        Dim result As Double
        result = first + second
        result = FormatNumber(result, 2)
        Return result
    End Function

End Class